package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.dao.StorageMapper;
import com.example.entity.Storage;
import com.example.service.StorageService;
import org.springframework.stereotype.Service;

@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService {
    @Override
    public Storage selectStorageById(Integer id) {
        return baseMapper.selectStorageById(id);
    }

    @Override
    public void updateStorage(String commodityCode, Integer coount){
        baseMapper.updateStorage(commodityCode, coount);
    }

}
